<div id="sidebar_container">
    <div class="sidebar">
        <div class="sidebar_top"></div>

        <div class="sidebar_item">
            <h3>Welcome to Bidsanity!</h3>
            <g:if test="${session.user}">
                <div>Logged In User: ${session.user}</div>
                <div><g:link controller="customer" action="logout">Log Out</g:link></div>
            </g:if>
            <g:else>
                <g:link controller="customer" action="login">Sign In</g:link>
                <a href="${createLink(controller:'customer',action:'create')}">Register</a>
            </g:else>
        </div>

        <div class="sidebar_base"></div>
    </div>

    <div class="sidebar">
        <div class="sidebar_top"></div>

        <div class="sidebar_item">
            <h3>Quicklinks</h3>
            <ul>
                <g:if test="${controllerName=='customer'}">
                    <g:render template="/quicklinks/customer" />
                </g:if>
                <g:elseif test="${controllerName=='listing'}">
                    <g:render template="/quicklinks/listing" />
                </g:elseif>
                <g:else>
                    <g:render template="/quicklinks/default" />
                </g:else>
            </ul>
            %{--<h3>Search</h3>--}%

            %{--<form method="post" action="#" id="search_form">--}%
            %{--<p>--}%
            %{--<input class="search" type="text" name="search_field" value="Enter keywords....."><input--}%
            %{--name="search" type="image" style="border: 0; margin: 0 0 -9px 5px;"--}%
            %{--src="${resource(dir: 'images', file: 'search.png')}" alt="Search" title="Search"></p>--}%
            %{--</form>--}%
        </div>

        <div class="sidebar_base"></div>
    </div>

    <div class="sidebar">
        <div class="sidebar_top"></div>

        <div class="sidebar_item">
            <h3>Test Data Manager</h3>
            Click <g:link controller="testdata" action="index">here</g:link> to build/rebuild/clear test data!
        </div>

        <div class="sidebar_base"></div>
    </div>
</div>